package com.joker.orange.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.joker.common.annotation.ExcelDictFormat;
import com.joker.common.constant.CacheNames;
import com.joker.common.convert.ExcelDictConvert;
import com.joker.common.utils.JsonUtils;
import com.joker.common.utils.file.FileUtils;
import com.joker.common.utils.redis.CacheUtils;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 短视频用户视图对象 t_short_video_user
 *
 * @author Joker
 * @date 2024-06-09
 */
@Data
@ExcelIgnoreUnannotated
public class ShortVideoUserVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @ExcelProperty(value = "唯一标识")
    private Long id;

    /**
     * 用户名称
     */
    @ExcelProperty(value = "用户名称")
    private String userName;

    /**
     * 用户头像
     */
    @ExcelProperty(value = "用户头像")
    private String avatar;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    public String getAvatar() {
        return FileUtils.getUrl(avatar);
    }
}
